package proxy.dynamicp;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class HoseeDynamicProxy implements InvocationHandler {

    private Object object;

    public HoseeDynamicProxy(Object target) {
        this.object =target;
    }


    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println("invoke...");
        Object result = method.invoke(object, args);

        return result;
    }
}
